package com.bing.my.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bing.my.entity.Member;
import com.bing.my.entity.Recharge;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.istack.internal.NotNull;

/**
 * <p>
 * 充值数据 服务类
 * </p>
 *
 * @author bing
 * @since 2021-10-20
 */
public interface RechargeService extends IService<Recharge> {

    /**
    * 增加金额事务,新增充值记录
    * @author Bing
    * @date 2021/10/20 10:54
     * @param recharge
     * @param id
    * @return boolean
    */
    boolean addMoney(@NotNull Recharge recharge, @NotNull String id);
    /**
    * 分页查询充值明细
    * @author Bing
    * @date 2021/10/20 16:17
     * @param pageNum
     * @param pageSize
     * @param memberId
    * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.bing.my.entity.Member>
    */
    Page<Recharge> selectPage(Integer pageNum, Integer pageSize, String memberId);
    /**
    * 修改
    * @author Bing
    * @date 2021/10/20 20:00
     * @param recharge
    * @return int
    */
    int update(Recharge recharge);
    /**
    * 删除
    * @author Bing
    * @date 2021/10/20 20:06
     * @param id
    * @return int
    */
    int deleteById(String id);
}
